package com.wang.animalkingdom;

public class Cat extends Animal implements Terrestrial {
    private int legNum;

    public Cat() {
    }

    public Cat(String name, int legNum) {
        super(name);
        this.legNum = legNum;
    }

    @Override
    public void shout() {
        System.out.println("喵喵喵~");
    }

    @Override
    public int getLegNum() {
        return legNum;
    }
}
